package com.wanxi.inclass;

import com.wanxi.door.AlarmDoor;
import com.wanxi.door.IAlarm;

public class MyInClass {

    private String name="a";
    private static int age;

    {

    }

    public static void main(String[] args) {
//        new MyInClass().name;
        System.out.println(new MyInClass().name);
//        System.out.println( this.name);

        {
            String aa = "aa";
        }
        MyInClass myInClass = new MyInClass();
        String weight = myInClass.new InClass().weight;

        System.out.println(weight);
        System.out.println("aaa");
    }

    public void aa() {

        String weight1 = new InClass().weight;
        int a = 0;
        IAlarm iAlarm = new IAlarm() {
//            String aa="aa";

            @Override
            public void alarm() {
                System.out.println();
                System.out.println();
            }
        };
        class AaInClass{
            private String bb;

            public String getBb() {
                System.out.println(weight1);
                return bb;
            }

            public void setBb(String bb) {
                this.bb = bb;
            }
        }
//        new AaInClass().getBb();
    }

   public class InClass {
        private String weight;

        public void aa(String[] args) {
            System.out.println(new MyInClass().name);
            System.out.println(MyInClass.age);
//            System.out.println();
        }
    }
}
